//
//  LLPhotosViewController.h
//  LLCoreUserInterface
//
//  Created by my_liu on 2016/11/16.
//  Copyright © 2016年 my_liu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LLAssetsPickerCell.h"
#import "LLAlbums.h"

@class LLPhotosViewController;

@protocol LLPhotosViewControllerDelegate <NSObject>

@optional
/* 照片已经枚举完了时候会执行 */
- (void)photoViewController:(LLPhotosViewController*)photoViewController didFinishEnumrateAssets:(NSArray *)assets forAlbums:(LLAlbums*)destAlbums;

@end

@interface LLPhotosViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,LLAssetsPickerCellDelegate>

@property (nonatomic,weak)id<LLPhotosViewControllerDelegate> delegate;

/* 照片列表 */
@property (nonatomic,strong)UITableView *assetsTable;

/* 照片数据源 */
@property (nonatomic,strong)NSMutableArray *assetsArray;

/* 多选的最大数量 */
@property (nonatomic,assign)NSInteger mutilSelectLimitCount;

/* 每一行有多少列 */
@property (nonatomic,assign)NSInteger colums;

/* 每一行的两列之间的间隔 */
@property (nonatomic,assign)CGFloat    columSpace;

/* 真实的相册数据源 */
@property (nonatomic,strong)LLAlbums * albums;

/*
 * 用来传递外层已经选中的Assets，用于加载新的Assets选择列表的时候，直接赋成选中状态，已实现
 * 但是目前需求和效率问题限制，调用暂时无效
 */
@property (nonatomic,strong)NSArray *shouldInitSelectedStateAssetArray;

@end
